package cn.cangfei.massage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


@ToString
@Data
public class VisitProduct implements Serializable {

    @TableId(value = "id", type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Long id;

    /**
     * 用户编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "用户编号")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 预约产品的编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "预约产品的编号")
    @TableField(value = "product_id")
    private Long productId;


    @TableField(value = "buycount")
    private Integer buycount;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;

    /**
     * 0表示预约了(但还未实现)，1表示成功预约了(已经实现)
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "0表示预约了(但还未实现)，1表示成功预约了(已经实现)")
    @TableField(value = "ok")
    private Integer ok;

}
